package day8homework;

public class CarTest {
	public static void main(String[] args) {
		SubCar aodi = new SubCar();
		aodi.setMark("奥迪");
		aodi.setPrice(50);
		aodi.setSpeed(80);
		System.out.println("本车的品牌是" + aodi.getMark());
		System.out.println(aodi.getMark() + "车的价格是" + aodi.getPrice());
		System.out.println(aodi.getMark() + "车原来的速度是" + aodi.getSpeed());
		aodi.drive();
		System.out.println(aodi.getMark() + "车现在的速度是" + aodi.speedChange(120) );
		System.out.println("====================================================");
		
		SubCar benchi = new SubCar();
		benchi.setMark("奔驰");
		benchi.setPrice(100);
		benchi.setSpeed(90);
		System.out.println("本车的品牌是" + benchi.getMark());
		System.out.println(benchi.getMark() + "车的价格是" + benchi.getPrice());
		System.out.println(benchi.getMark() + "车原来的速度是" + benchi.getSpeed());
		benchi.drive();
		System.out.println(benchi.getMark() + "车现在的速度是" + benchi.speedChange(120));
	}
}